function logistic(x0,r,t)
x=zeros(1,t);
x(1)=x0;
for i=1:1:t-1
    x(i+1)=r*x(i)*(1-x(i));
end
plot(x(1,:));
end



